//
//  thirdCell.m
//  ILiangCang
//
//  Created by ZX on 16-4-21.
//  Copyright (c) 2016年 CRQ. All rights reserved.
//

#import "thirdCell.h"
#import "Masonry.h"

#define WIDTH [UIScreen mainScreen].bounds.size.width
@implementation thirdCell

- (void)awakeFromNib {
    // Initialization code
}

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self)
    {
        _leftBtn = [[UIButton alloc]init];
        
        _leftBtn.tag = 20;
        [self addSubview:_leftBtn];
        
            
        
        _rightBtn = [[UIButton alloc]init];
        
        _rightBtn.tag = 21;
        [self addSubview:_rightBtn];
    
    [_leftBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.mas_equalTo(self).with.offset(0);
        make.width.mas_equalTo(WIDTH/2);
    }];
        
    [_rightBtn mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.bottom.right.mas_equalTo(self).with.offset(0);
            make.width.mas_equalTo(WIDTH/2);
        }];

        
        
    }
    return self;
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
